package pl.ydp.components.mathcell.mathrecognizer.engine.database.modelsets.math_basic.characters
{
	import pl.ydp.components.mathcell.mathrecognizer.characters.Character;
	import pl.ydp.components.mathcell.mathrecognizer.geometry.classification.PrimitiveType;
	import pl.ydp.components.mathcell.mathrecognizer.model.PrimitivesRelation;
	import pl.ydp.components.mathcell.mathrecognizer.model.RelationDescription;
	import pl.ydp.components.mathcell.mathrecognizer.model.RelationDescriptorType;
	import pl.ydp.components.mathcell.mathrecognizer.model.ShapeModel;
	import pl.ydp.components.mathcell.mathrecognizer.model.descriptors.SizeDescriptor;
	import pl.ydp.components.mathcell.mathrecognizer.model.presets.PrimitivePresets;
	public class MB_ch_0
	{
		
		public static const MODELS_COUNT:Number = 1;
		
		//---------------------------------------------------
		
		public static function getModels():Array{
			
			var zeroShapeModels:Array = new Array();
			
			zeroShapeModels.push(getModel0());		
			
			return zeroShapeModels;
		}
		
		//---------------------------------------------------
		
		private static function getModel0():ShapeModel{
			var zero:ShapeModel;
			var name:String = "MB_0_RND";
			var zero_prim:Array = new Array();
			var zero_ref:Array = new Array();
			var zero_rel:Array = new Array();
			
			zero_prim.push(PrimitiveType.LOOP);
			
			zero_ref.push(0,PrimitivePresets.RLT_FULL);
			
			zero_rel.push(new RelationDescription(0,1,new PrimitivesRelation(RelationDescriptorType.SIZE, SizeDescriptor.HEIGHT | SizeDescriptor.ABOUT_15, 10)));
			
			zero_rel.push(new RelationDescription(0,1,new PrimitivesRelation(RelationDescriptorType.SIZE, SizeDescriptor.WIDTH | SizeDescriptor.ABOUT_15, 10)));
			
			zero = new ShapeModel(Character.ZERO, zero_prim, zero_ref, zero_rel, new Array(), name, false);
			
			return zero;				
		}
		
		//---------------------------------------------------
		
		
	}
}